<!DOCTYPE html>
<style>* { font-family: monospace; }</style>
<div>[<span id="one">One</span>]</div>
<div>[<span id="two">Two</span>]</div>
<script>
function doDrag(start, end) {
    if (!window.eventSender)
        return;
    eventSender.mouseMoveTo(start.offsetLeft + (start.offsetWidth / 2), start.offsetTop + 3);
    eventSender.mouseDown();
    eventSender.mouseMoveTo(end.offsetLeft + (end.offsetWidth / 2), end.offsetTop + 3);
    eventSender.mouseUp();
}
doDrag(two, one);
</script>
